﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LanguageStudy
{
    public partial class WordForm : Form
    {
        Word m_ShowWord = null;

        public WordForm(Word wShow)
        {
            InitializeComponent();

            m_ShowWord = wShow;
        }

        private void WordForm_Load(object sender, EventArgs e)
        {
            this.lblWord.Text = m_ShowWord.m_strWord;
            this.lblPhonetic.Text = m_ShowWord.m_strPhonetic;

            this.lblMeanings.Text = "";
            for (int _i = 0; _i < m_ShowWord.m_alMeanings.Count; _i++)
            {
                this.lblMeanings.Text += m_ShowWord.m_alMeanings[_i].ToString();
                this.lblMeanings.Text += "\n";
            }
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
